<template>
  <van-nav-bar :title="title" />
  <div>标签页</div>
</template>

<script>
import { getTag } from "@/api/api";

export default {
  data() {
    return {
      title: "",
    };
  },
  mounted() {
    this.getData();
  },
  methods: {
    async getData() {
      const res = await getTag({ type: this.$route.params.id });
      console.log(res);
      this.title = res.title;
    },
  },
};
</script>
